import type {App} from 'vue';
import {createPinia} from 'pinia';
// 引入持久化插件
import piniaPluginPersist from 'pinia-plugin-persistedstate';
const store = createPinia();

export function setupStore(app: App<Element>) {
  app.use(store);
  store.use(piniaPluginPersist);
}

export {store};
